var strategies = array_length_1d(activators);

for(var i = 0; i < strategies; i++)
{
    if(script_execute(activators[i]))
    {
        script_execute(actions[i]);
        return true;
    }
}
return false;
